package qf.api;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

@SpringBootApplication
@EnableGlobalMethodSecurity(prePostEnabled = true)  // 开启权限
@EnableDiscoveryClient // 开启nacos
@EnableFeignClients(basePackages = {"qf.api","qf.common.security"}) // 开启 OpenFeign 功能,开启扫描其他包下的OpenFegin
@ComponentScan(value = {"qf.common","qf.api"})
public class ApiApplication {
    public static void main(String[] args) {
        SpringApplication.run(ApiApplication.class,args);
    }
}
